package jam.UserInterface.UI;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.colorchooser.*;

    // this code was taken from the book Java Swing 2nd edition by Marc Loy, Robert Eckstein, Dave Wood, James Elliott and Brian Cole, published in 2002 by O'Reilly, USA.

public class fontPickerWindow extends JFrame{
	Color c;


	public fontPickerWindow(JEditorPane messageBox){
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		setBounds(((int)(screenSize.getWidth()-200))/2,((int)(screenSize.getHeight()-100))/2,200,100);
		final fontChooserWindow chooser = new fontChooserWindow(fontPickerWindow.this,messageBox);
		boolean first = true;
		chooser.setVisible(true);
	}
}
